<?php
	$tabs_class = array('sale' => '', 'hire' => '', 'user' => '', 'agency' => '', 'broker' => '', 'datastate' => '');
	$tabs_class[$this->router->fetch_class()] = ' class="current"';
	$tabs_method = array('addsale' => '', 'addhire' => '');
	$tabs_method[$this->router->fetch_method()] = ' class="current"';
?>
<h2 class="title">房源发布</h2>
<ul class="mb10">
	<li<?php echo $tabs_method['addsale']; ?>><a href="<?php echo site_url('manage/post/addsale'); ?>" id="manger_addsale">发布出售</a></li>
	<li<?php echo $tabs_method['addhire']; ?>><a href="<?php echo site_url('manage/post/addhire'); ?>" id="manger_addhire">发布出租</a></li>
</ul>
<h2 class="title">房源管理</h2>
<ul class="mb10">
	<li<?php echo $tabs_class['sale']; ?>><a href="<?php echo site_url('manage/sale/index'); ?>" id="manger_sale">出售房源</a></li>
	<li<?php echo $tabs_class['hire']; ?>><a href="<?php echo site_url('manage/hire/index'); ?>" id="manger_hire">出租房源</a></li>
</ul>
<h2 class="title">用户管理</h2>
<ul>
	<li<?php echo $tabs_class['user']; ?>><a href="<?php echo site_url('manage/user/index'); ?>" id="manger_user">用户资料</a></li>
	<!--中介公司管理显示：只有user.agency_id 为真 的经纪人才显示中介公司管理这个左栏菜单-->
	<li<?php echo $tabs_class['agency']; ?>><a href="<?php echo site_url('manage/agency/index'); ?>" id="manger_agency">中介公司</a></li>
	<li<?php echo $tabs_class['broker']; ?>><a href="<?php echo site_url('manage/broker/index'); ?>" id="manger_broker">经纪人管理</a></li>
	<li<?php echo $tabs_class['datastate']; ?>><a href="<?php echo site_url('manage/datastate/index'); ?>" id="manger_datastate">数据统计</a></li>
</ul>